package com.team.engine.user.dao;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.team.engine.basedao.CommonDao;

@Repository
@Scope("singleton")
public class UserGroupDaoImpl extends CommonDao<UserGroup, Integer>  {


	public UserGroupDaoImpl(){
		super.clazz = UserGroup.class;
		super.className = "UserGroup";
		super.idName = "usergroupId";
	}
	
	/* (non-Javadoc)
	 * @see com.team.engine.user.dao.TUserDao#selectByName(java.lang.String)
	 */
	public List<UserGroup> selectByName(String name){
		return this.getSession().createQuery("from TUsergroup where name_n = ?").setString(0, name).list();
	}

}
